package ModelLayer;
import java.util.*;


public class Copy
{
    /* Instance variabe */
    private int serialNumber;
    private  int purchaseDate;
    private  int purchasePrice;
    private long no;
    
    /* Constructor for the class Copy */
    public Copy(long id, int serialNumber, int purchaseDate,int purchasePrice)
    {
        this.serialNumber=serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
        no = id;
    }
    
    /* Print method with all the inforamtion */
    public void printInfo()
    {
        System.out.println("Serial number : " + serialNumber);
        System.out.println("Purchase date : " + purchaseDate);
        System.out.println("Purchase price : " + purchasePrice);    
    }
    /* Get methods */
    public int getSerialNumber()
    {
        return serialNumber;
    }
    
    public long getId()
    {
        return no;
    }
    
    public int getPurchaseDate()
    {
        return purchaseDate;
    }
    
    public int getPurchasePrice()
    {
        return purchasePrice;
    }
    
    /* Set methods */
    public void setSerialNumber(int serialNumber)
    {
        this.serialNumber = serialNumber;
    }
    
    public void setPurchaseDate(int pruchaseDate)
    {
        this.purchaseDate = purchaseDate;
    }
    
    public void setPurchasePrice(int purchasePrice )
    {
        this.purchasePrice = purchasePrice;
    }
}
